<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const numbers = [9,4,7,1]
        console.log('1',Math.min(...numbers)) // 1
        console.log('2',Math.max([...numbers])) // NaN  那是因为Math.max接收的格式是Math.max(9,4,7,1) ,不需要Math.max([9,4,7,1])里面的[]
        console.log('3',[...numbers]) // [9, 4, 7, 1]
        console.log('4',Math.max(9, 4, 7, 1)) // 1

    </script>
</body>
</html>